package com.hqyj.system.service.impl;

import com.hqyj.system.mapper.RolePermissionMapper;
import com.hqyj.system.model.RolePermission;
import com.hqyj.system.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName RolePermissionServiceImpl
 * @Description
 * @Author zlf
 * @Date 2021/9/14 10:18
 * @Version 1.0
 **/
@Service
public class RolePermissionServiceImpl implements RolePermissionService {
    @Autowired
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public int addRolePermissionByRolePermission(RolePermission rolePermission) {
        return rolePermissionMapper.insertSelective(rolePermission);
    }

    @Override
    public int deleteRolePermissionByRoleId(int roleId) {
        return rolePermissionMapper.deleteRolePermissionByRoleId(roleId);
    }
}
